package com.wl.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

@Getter
@Setter
@TableName("note")
public class Note implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "nid",type = IdType.AUTO)
    private Integer nid;

    @TableField(value = "uid")
    private Integer uid;

    @TableField(value = "ntid")
    private Integer ntid;

    @TableField(value = "title")
    private String title;

    @TableField(value = "content")
    private String content;

    @TableField(value = "img1")
    private String img1;

    @TableField(value = "img2")
    private String img2;

    @TableField(value = "img3")
    private String img3;

    @TableField(value = "created_at")
    private Date createdAt;

    @TableField(value = "updated_at")
    private Date updatedAt;

    @TableField(value = "sta")
    private Integer sta;

    @TableField(value = "view_count")
    private Integer viewCount;

    @TableField(value = "like_count")
    private Integer likeCount;

    @TableField(value = "favorite_count")
    private Integer favoriteCount;

    @TableField(value = "comment_count")
    private Integer commentCount;

    @TableField(value = "uname")
    private String uname;

    @TableField(value = "head")
    private String head;

    @TableField(value = "zhanghao")
    private String zhanghao;

    @TableField(value = "bio")
    private String bio;

}
